//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04B
TN_Widget.CreateTable([['Ghosts: Do You Believe?','District Music Hall','Norwalk, CT','Sunday','5/5/2024','8:00 PM','6267238','Ghosts--Do-You-Believe--5-5-2024'],['The Wailin' Jennys','District Music Hall','Norwalk, CT','Friday','5/10/2024','8:00 PM','6259474','The-Wailin--Jennys-5-10-2024'],['Gimme Gimme Disco','District Music Hall','Norwalk, CT','Saturday','5/11/2024','8:00 PM','6307225','Gimme-Gimme-Disco-5-11-2024'],['The Verve Pipe','District Music Hall','Norwalk, CT','Friday','5/17/2024','8:00 PM','6267253','The-Verve-Pipe-5-17-2024'],['The Damned','District Music Hall','Norwalk, CT','Thursday','5/30/2024','8:00 PM','6296196','The-Damned-5-30-2024'],['Baroness','District Music Hall','Norwalk, CT','Saturday','6/1/2024','8:00 PM','6395747','Baroness-6-1-2024'],['The Musical Box','District Music Hall','Norwalk, CT','Thursday','6/13/2024','8:00 PM','6281930','The-Musical-Box-6-13-2024'],['Kashmir - The Led Zeppelin Experience','District Music Hall','Norwalk, CT','Friday','6/21/2024','8:00 PM','6359286','Kashmir---The-Led-Zeppelin-Experience-6-21-2024'],['Blackmore's Night','District Music Hall','Norwalk, CT','Sunday','6/23/2024','7:00 PM','6341618','Blackmore-s-Night-6-23-2024'],['Kurt Vile and The Violators','District Music Hall','Norwalk, CT','Sunday','6/30/2024','8:00 PM','6303091','Kurt-Vile-and-The-Violators-6-30-2024'],['Live At The Fillmore - Tribute to The Allman Brothers','District Music Hall','Norwalk, CT','Saturday','7/6/2024','8:00 PM','6298671','Live-At-The-Fillmore---Tribute-to-The-Allman-Brothers-7-6-2024'],['Fiddlehead','District Music Hall','Norwalk, CT','Friday','7/26/2024','8:00 PM','6373898','Fiddlehead-7-26-2024'],['Kathy Griffin','District Music Hall','Norwalk, CT','Friday','8/23/2024','8:00 PM','6376977','Kathy-Griffin-8-23-2024'],['Sarah Jarosz','District Music Hall','Norwalk, CT','Tuesday','8/27/2024','8:00 PM','6408593','Sarah-Jarosz-8-27-2024'],['Circle Jerks','District Music Hall','Norwalk, CT','Monday','9/2/2024','7:30 PM','6413873','Circle-Jerks-9-2-2024'],['Built To Spill','District Music Hall','Norwalk, CT','Tuesday','9/3/2024','7:30 PM','6362214','Built-To-Spill-9-3-2024'],['Roger McGuinn','District Music Hall','Norwalk, CT','Saturday','9/21/2024','8:00 PM','6257026','Roger-McGuinn-9-21-2024'],['The Samples','District Music Hall','Norwalk, CT','Thursday','11/20/2070','8:00 PM','4452175','The-Samples-11-20-2070']],'Norwalk Concert Hall','http://www.ticketnetwork.com/ticket/Norwalk-Concert-Hall-events.aspx');